using UnityEngine;

public class Attack : MonoBehaviour {

    public int damage;//伤害
    
    private void OnTriggerStay2D(Collider2D other)
    {
        other.GetComponent<Character>()?.TakeDamage(this);
    }
}